package com.ruoyi.web.controller.agoniappWeb;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.system.service.IAgoniReviewService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/pages/review")
public class ReviewWebController {

    @Autowired
    private IAgoniReviewService agoniReviewService;

    //TODO:

    @GetMapping("/listReviews")
    public AjaxResult getReviewList(){
        return AjaxResult.success(agoniReviewService.getReviewList());
    }

}
